package com.inspinia.message.common.model;

import com.inspinia.base.common.model.NameCodeEnum;

/**
 * 案件关联类型
 * 每个不同实体code之间预留100位
 * @author Veblen
 */
public enum NoticePushStatus implements NameCodeEnum {
    unread(1, "未读"),
    read(2, "已读");

    private final int code;
    private final String name;

    NoticePushStatus(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    public static NoticePushStatus valueOf(int code) {
        for (NoticePushStatus rs : NoticePushStatus.values()) {
            if (rs.getCode() == code) {
                return rs;
            }
        }
        return null;
    }


}

